package concept.misc;

public class FinalLocalAccessingLab
{

	public static void testMethod()
	{
		final String finalField = "Hello";
		String field = "Hello";

		Runnable r = new Runnable()
		{
			public void run()
			{
				//String innerField = field;
				String innerFinalField = finalField;

				System.out.println(innerFinalField==finalField);
				//System.out.println(field);
			}
		};
		
		Thread t = new Thread(r);
		t.run();//never should Thread.run() be called manually. No thread will be started here. 
	}
	
	public static void main(String[] args)
	{
		testMethod();
	}
}
